<?php

namespace app\common\model;

use app\common\core\BaseModel;

class Admin extends BaseModel
{
    protected $name = 'admin';
    protected $autoWriteTimestamp = true;
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    public function group()
    {
        return $this->hasOneThrough(AuthGroup::class,AuthGroupAccess::class,'uid','id','id','group_id');
    }
}